/*
 * $Id: Finding.java 89 2012-12-28 10:57:30Z Denis.Skalsky@gmail.com $
 */
package com.globallogic.skalskyy.javabasic.valstaff.commands;

import java.util.List;
import java.util.StringTokenizer;


/**
 * Finding is to find employee by parameters.
 * @author $Author: Denis.Skalsky@gmail.com $
 * @version $Revision: 89 $
 */
public class Finding extends Command {
		
	@Override
	public List<String> execute(String parameters) {
		StringTokenizer args = new StringTokenizer(parameters, Command.PARAMETER_SEPARATOR);
		Command command = CommandPool.getInstance().getCommand(args.nextToken());
		
		return command.execute((args.hasMoreTokens() ? args.nextToken(Command.PARAMETER_SEPARATOR).trim() : ""));
	}
}